package com.ss.android.push.window.oppo;

import android.content.Context;
import com.ss.android.common.applog.AppLog;
import com.ss.android.common.util.MultiProcessSharedProvider;
import com.ss.android.newmedia.BaseAppData;
import com.ss.android.newmedia.message.i;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.Map;
import org.json.JSONObject;

public final class a {
    public a() {

    }

    public static void a(Context arg6, com.ss.android.push.window.oppo.m.a arg7) {
        if(arg7 != null) {
            i.a(arg6, arg7.c, BaseAppData.inst(), arg7.d, arg7.e, true);
        }
    }

    public static void a(Context arg6, Map arg7) {
        try {
            com.ss.android.common.util.MultiProcessSharedProvider.a v2 = MultiProcessSharedProvider.a(arg6);
            Iterator v3 = arg7.entrySet().iterator();
            while(v3.hasNext()) {
                Object v0_1 = v3.next();
                Object v1 = ((Map.Entry)v0_1).getValue();
                if((v1 instanceof Integer)) {
                    v2.a((String) ((Entry)v0_1).getKey(), ((Integer)v1).intValue());
                    continue;
                }

                if((v1 instanceof Long)) {
                    v2.a((String) ((Entry)v0_1).getKey(), ((Long)v1).longValue());
                    continue;
                }

                if((v1 instanceof Float)) {
                    v2.a((String) ((Entry)v0_1).getKey(), ((Float)v1).floatValue());
                    continue;
                }

                if((v1 instanceof Boolean)) {
                    v2.a((String) ((Entry)v0_1).getKey(), ((Boolean)v1).booleanValue());
                    continue;
                }

                if(!(v1 instanceof String)) {
                    continue;
                }

                v2.a((String) ((Entry)v0_1).getKey(), ((String)v1));
            }

            v2.a();
            return;
        }
        catch(Throwable v0) {
        }
    }

    public static void a(String arg9, String arg10, String arg11, long arg12, JSONObject arg14) {
        AppLog.onEvent(arg9, arg10, arg11, arg12, -1, arg14);
    }
}

